package com.milepost.messagepush.common.enums;

/**
 * @author huarf
 * @Description
 * @create 2021-01-28 15:40
 */
public enum DsKeyEnum {
    /**
     * 用户库
     */
    USER("user", "用户库");

    private final String key;
    private final String des;

    DsKeyEnum(String key, String des) {
        this.key = key;
        this.des = des;
    }

    public String getKey() {
        return key;
    }


    public String getDes() {
        return des;
    }


    public static DsKeyEnum of(String key) {
        for (DsKeyEnum enums : DsKeyEnum.values()) {
            if (enums.key.equals(key)) {
                return enums;
            }
        }
        return null;
    }
}
